案例1:编写一键部署软件脚本案例2:启动脚本案例3:编写监控脚本案例4:编写安全检测脚本案例5:编写进度显示脚本1 Case 1: Writing a one-click Deployment Software Script1.1 QuestionsThis case requires script implementation of one-click deployment of Nginx Software (Web server):一键源码安装Nginx软件脚本自动安装相关软件的依赖包脚本自动判断yum是否可用1.2 StepsThe implementation of this case needs to follow the steps below.Step one: Prepare for work1) Determine if the Yum source is availableSee if the package count is greater than 0 through Yum Repo
Group[Root @ localhost ~] # Yum groupremove "Print Server"
--------------------------------------------------------------------------------Other YUM options:# Yum list [all | installed | updates | available]# Yum grouplist
// List all software packages// All can be omitted[Root @ localhost ~] # Yum list all[Root @ localhost ~] # Yum list// List all installed software packages[Root @ localhost ~] # Yum list installed// List all software packages to be updated[Root @ localhost ~] # Yum list updat
all of the Yum installation packages for GCCYum list available: available, but not yet installed Yum installation packageYum List installed: Installed Yum installation packageYum list updates: Available upgrade installation packages7. Yum Clean: Cleanup cacheYum Clean {Packages|headers|metadata|dbcache|all}8. Yum repolist: Displays the repo list and its brief informationYum Repolist all displays all the re
side to provide the data to the client requires protocol support (such as Ftp,http)Server: There are many installation packages RPM, package warehouse Inventory (package classification for the client to provide their desired package)1. Server, mount the optical drive device, let the system appear CD content (first create directory mkdir, above has created/RHEL7)[Email protected] ~]# mount/dev/cdrom/rhel7/2. Local client, modify configuration file, specify local as server #将本地客户端自己定为服务端/etc/yum.
-update UnloadingYum-y Remove Package Name HelpYum--help, man YumYumclean all clears the cache and the old packageYum Repolist View the currently available Yum sourcesYum deplist httpd lists a package for all dependent packagesbuild local Yum source#cat/etc/yum.repos.d/centos-base.repo[Base]name=centos-$releasever-basemirrorlist=http://mirrorlist.centos.org/?release= $releasever arch= $basearch repo=os#baseurl =http://mirror.centos.org/centos/$relea
=" Wkiol1dnvuiswlbgaadwurojcbc849.png "/>3. Yum Store (yum repo)In general, warehouses are file servers that can be serviced through the following Parties:ftp:/// httpnfs://file:///Create a yum warehouse: Createrepo [Options] 4. Use of Yum related commandsYum [options] [command] [pckage ...]Yum-config-manager--ADD-REPO=FILE:///MISC/CD generating Warehouse files Misc_cd.repoYum-config-manager--disable "MISC_CD" Disable the WarehouseYum-config-manager--enable "MISC_CD" Enable warehouseYum
Installing mysql5.6 with Yum under Linux (CentOS)Preparing: Installing MySQL Yum Repository, https://dev.mysql.com/downloads/repo/yum/View the current Linux (Red Hat) version number: Cat/proc/versionView CentOS version number: Cat/etc/redhat-releaseGLIBC Upgrade: Yum Update glibcNewly opened cloud server, need to detect whether the system comes with the installation of MySQL# Yum List Installed | grep MySQLIf you find a system that comes with MySQL, do it decisively# yum-y Remove mysql-libs.x86_
Tags: failed yum install MySQL 5.7 mysql 5.6 list fail str Remove logA. Yum installation mysql5.6 1. Install the warehouse to install MySQL using yum, you need to use the Yum repository in MySQL to download the appropriate system repository from the official website first . http://dev.mysql.com/downloads/repo/yum/ then install this list of warehouses wget http://repo.mysql.com//mysql57-community-release-el6-8.noarch.rpm RPM-IVH mysql-community-release-el6-5.noarch.rpm or: # Yum install http://r
Because RHEL (RedHat) 6.3 needs to install flow-tools, you need to set the epel source. The method is as follows: 32-bit System Selection: rpm-ivhhttp: // configure
Because RHEL (RedHat) 6.3 needs to install flow-tools, you need to set the epel source. The method is as follows:
32-bit System Selection:Rpm-ivh http://download.Fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm64-bit System Selection:Rpm-ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
/3verifying :createrepo-0.9.9-17.el6.noarch 2/3Verifying:deltarpm-3.5-0.5.20090913git.el6.x86_64 3/3installed:createrepo.noarch0:0.9.9-17.el6dependencyinstalled: deltarpm.x86_640:3.5-0.5.20090913git.el6python-deltarpm.x86_640:3.5-0.5.20090913git.el6complete! Youhavenewmailin/var/spool/mail/root[Email protected] rpm-gpg]# Rpm-qa | grep createrepocreaterepo-0.9.9-17.el6.noarchI have successfully installed2. Under/root mkdir a folder Epel, I put the *.rpm copy to/root/epel that I had previously m
"alt=" wkiom1upgcfc3wpraad-qq3s5im708.jpg "src="/http S3.51cto.com/wyfs02/m00/5e/0b/wkiom1upgcfc3wpraad-qq3s5im708.jpg "/> Description: This configuration BaseURL address is the LAN file server address.(2), configuration file variablesYum has built-in variables for storing the current platform's phase information;1, $releasever: The current OS release version of the major version number;For example, for CentOS 6.6 x86_64, the major version number is 6;2. $arch: Platform3, $basearch: The basic p
/repositories?q=javascriptsort=stars ')}/>,Document.body);The above code crawls the data from the GitHub API and then passes the Promise object as an attribute to the Repolist component.If the Promise object is fetching data (pending state), the component displays "Loading", and if the Promise object complains (rejected state), the component displays an error message; If the Promise object captures the data successfully (the fulfilled state), Componen
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.